package com.first.t;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class MainList extends ListActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
	  super.onCreate(savedInstanceState);

	  setListAdapter(new ArrayAdapter<String>(this, R.layout.main_list, Options));  
	}
	 

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		// TODO Auto-generated method stub
		super.onListItemClick(l, v, position, id);
		String item = (String) getListAdapter().getItem(position);
		//if (item.equals("TRIP IDEAS"))
			startActivity( new Intent( MainList.this, TripIdeasList.class ));
		//else	
			//startActivity( new Intent( MainList.this, AdvancedS_trip.class ));
	}


	static final String[] Options = new String[] {"Vacation Rentals", "Trip Ideas"};
}



